import os

class Data(object):
    # 递归找出文件夹最里面的文件
    def find_inside_file(self, files_path, folder_path):
        if os.path.isfile(folder_path) == False:
            for sub_file in os.listdir(folder_path):
                if os.path.isfile(os.path.join(folder_path, sub_file)):
                    files_path.append(os.path.join(folder_path, sub_file))
                else:
                    self.judge_path(files_path, os.path.join(folder_path, sub_file))
        else:
            raise ValueError('The path is not a folder')
        return files_path